#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include <qqtudpclient.h>
#include <qqtdataprotocol.h>
#include <qqtdatapersistence.h>
#include <qqtfindservermanager.h>
#include <qqtdatamanager.h>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow ( QWidget* parent = 0 );
    ~MainWindow();

private slots:
    void slotTimeout();

    void slotFindServer ( QString ip, int port );

    void on_pushButton_clicked ( bool checked );

    void on_pushButton_2_clicked ( bool checked );

    void on_pushButton_3_clicked ( bool checked );

    void on_pushButton_4_clicked ( bool checked );

    void on_pushButton_5_clicked ( bool checked );

    void on_pushButton_6_clicked ( bool checked );

    void on_pushButton_7_clicked ( bool checked );

    void on_pushButton_8_clicked ( bool checked );

private:
    Ui::MainWindow* ui;

    QQtUdpClient* c0;
    QQtDataProtocol* p0;

    QQtDataManager* m1;

    QQtFindServerManager* m0;

    QTimer* m_timer;
    QQtDataPersistence dp0;
};

#endif // MAINWINDOW_H
